﻿@{
    ViewBag.Title = "编辑目标";
    Layout = "~/Views/Shared/_LayoutDualColumns.cshtml";
}
@model Ducu.SRV.ViewModel.Plan.EditModel
@{
    object id = ViewContext.RouteData.Values["id"];
}
@section PageHeader{
    <span class="glyphicon glyphicon-edit" aria-hidden="true"></span><span class="after-glyphicon">@ViewBag.Title</span>
}
@using (Html.BeginForm())
{
    @Html.EditorFor(m => m.Origin, "_NewOrEdit")
    <div class="submit">
        <input type="submit" class="btn btn-primary" value="修改" />
        <a href="/Plan/New" class="btn btn-default">添加新目标</a>
        <a href="/Plan/Stop?id=@id" class="btn btn-info pull-right">关闭</a>
    </div>
}

@section RightPanel{
    @Html.Partial("Shared/_NewOrEditDescription")
    <li>
        关闭目标实质上是将目标的完成时间设置为今天，所以今天的任务还是应该完成。
    </li>
}

@section scripts{
    <script>
        $('input[data-provide="datepicker"]').datepicker({
            language: "zh-CN",
            startDate: "@DateTime.Now"
        });
    </script>
}